﻿using Microsoft.AspNetCore.Mvc;
using MiniFox.Components;
using MiniFox.Infrastructure;
using MiniFox.Platform.File.Services;
using MiniFox.Utility;
using MiniFox.Web.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Platform.File.Web
{
    /// <summary>
    /// 
    /// </summary>
    [NoCache]
    public class FileConfigController : MvcControllerBase
    {
        /// <summary>
        /// 
        /// </summary>
        [AutoWired]
        protected IConfigurationService Component {  get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public Response<object> GetConfig()
        {
            var config = Component.GetConfiguration();
            return config.CreateResponse();
        }
    }
}
